package com.concurrency.example.proxy.staticDemo;

import com.concurrency.example.proxy.TrainStation;
import com.concurrency.example.proxy.SellTickets;

/**
 * 代售点静态代理类
 */
public class ProxyPoint implements SellTickets {
    TrainStation trainStation = new TrainStation();

    /**
     * 售票方法
     */
    @Override
    public void sell() {
        System.out.println("火车票代售点收取一些服务费");
        trainStation.sell();
    }

}
